package com.wolf.repository;

import com.wolf.pojo.Wl_banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Wl_bannerMapper {
    int deleteByPrimaryKey(String id);

    int insert(Wl_banner record);

    int insertSelective(Wl_banner record);

    Wl_banner selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Wl_banner record);

    int updateByPrimaryKey(Wl_banner record);

    /**
     * 查询所有
     * @return
     */
    List<Wl_banner> getAll();

    /**
     * 模糊查询
     * @param channel
     * @param status
     * @param bannername
     * @param starttime
     * @param endtime
     * @return
     */
    List<Wl_banner> getSelective(@Param("channel")Integer channel,@Param("status") Integer status,@Param("bannername") String bannername,@Param("starttime") String starttime,@Param("endtime") String endtime);


}